package com.tang.design_pattern.responsePattern;

import org.springframework.stereotype.Component;

/**
 * @author tmh
 * @date 2024/3/25 20:04
 * @description
 */
@Component
public class RepeatOrderHandleInterceptor implements OrderHandleIntercept{
    /**
     * 1表示第一个执行
     * @return
     */
    @Override
    public int sort() {
        return 1;
    }

    @Override
    public Order handle(Order order) {
        System.out.println("重复订单处理");
        return order;
    }
}
